﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student:Person
    {
        public Student(string name) : base(name)
        {
            Console.WriteLine();
        }

        public void PrintSonMsg() 
        {
            string str = base.name;
            base.PrintFatherMsg();
            Console.WriteLine("我是子类中的打印方法");
        }
    }
}
